package com.mrjy.maintain.dao;

import java.util.List;

import com.mrjy.common.entity.BannerInfo;

public interface IBannerInfoDao {
	
	//添加banner
	int insert(BannerInfo bannerInfo);
	
	//分页查询(根据类型)
	List<BannerInfo> queryByPage(BannerInfo bannerInfo);
	
	//查询记录数
	int queryCount(BannerInfo bannerInfo);
	
	//启用/禁用
	int updateDisableFlag(BannerInfo bannerInfo);
	
	//根据ID查询
	Object queryById(int bannerInfo);
	
	//更新banner
	int updateById(BannerInfo bannerInfo);
	
	//增加点击量
	int addClickCount(Integer id);

	Object queryById(BannerInfo bannerInfo);

	List<BannerInfo> queryByPage2(BannerInfo bannerInfo);

}
